package com.xiaowen.projectData.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xiaowen.projectData.dto.ProjectDataCodeUpdateReq;
import com.xiaowen.projectData.dto.ProjectDataQueryDTO;
import com.xiaowen.projectData.entity.ProjectData;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目数据表 服务类
 * </p>
 *
 * @author yf-wenhao
 * @since 2024-09-30
 */
public interface ProjectDataService extends IService<ProjectData> {

    void batchAddProjectData(List<ProjectData> projectDataList);

    void deleteProjectDataByProjectId(Integer projectId);

    IPage<Map> queryProjectDataPageByProjectId(ProjectDataQueryDTO projectDataQueryDTO);

    List<ProjectData> queryProjectDataListByProjectId(Integer projectId);

    List<Map<String, Object>> queryProjectDataListWithCodeByProjectId(Integer projectId);

    void updateByProjectIdAndIdVal(ProjectData projectData, Integer projectId, String idVal);

    ProjectData queryByProjectIdAndIdVal(Integer projectId, String idVal);

    Boolean updateCode(ProjectDataCodeUpdateReq updateReq);

    Boolean batchAddCode(ProjectDataCodeUpdateReq updateReq);
}
